/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSkyRoom.bridge.major;

import ru.jSkyRoom.interfaces.Enchantment;
import ru.jSkyRoom.interfaces.FormList;
import ru.jSkyRoom.finder.FinderByFormId;
import skyproc.ENCH;
import skyproc.FormID;

/**
 *
 * @author Rakev
 */
public class EnchantmentBridge extends MagicItemBridge<ENCH> implements Enchantment {

    public EnchantmentBridge(ENCH adapting) {
        super(adapting);
    }

    @Override
    public FormList getWornRestrictionFormList() {
        FormID formListID = getAdapting().getWornRestrictions();
        return getFinderFactory().createFormListFinder().find(formListID);
    }

    @Override
    public Enchantment getBaseEnchantment() {
        FormID baseEnchantmentID = getAdapting().getBaseEnchantment();
        return getFinderFactory().createEnchantmentFinder().find(baseEnchantmentID);
    }
}
